﻿/****************************************************************************
 * 2018.8 DESKTOP-4DTOKQJ
 ****************************************************************************/

namespace QFramework.Example
{
	using UnityEngine;
	using UnityEngine.UI;

	public partial class UIMainPanel
	{
		public const string NAME = "UIMainPanel";

		public Button AddTodoItemButton;
		public RectTransform TodoItemParent;
		public UIToDoItem TodoItem;

		protected override void ClearUIComponents()
		{
			AddTodoItemButton = null;
			TodoItemParent = null;
			TodoItem = null;
		}

		private UIMainPanelData mPrivateData = null;

		public UIMainPanelData mData
		{
			get { return mPrivateData ?? (mPrivateData = new UIMainPanelData()); }
			set
			{
				mUIData = value;
				mPrivateData = value;
			}
		}
	}
}
